<?php
/**
 * Created by phpstorem.
 * User: yangakw@qq.com
 * Sign: 猥琐发育，别浪
 * Date: 2017/10/5 0005
 * Time: 下午 10:25
 */

namespace src;


class Item  implements \ArrayAccess
{
    public $url="";
    public $hash="";
    public $value="";
    public $handle="";
    public $err_msg="";


    public function __construct($hash,$url,$value,$handle)
    {
        $this->hash = $hash;
        $this->url = $url;
        $this->value = $value;
        $this->handle = $handle;
    }

    public function __toString()
    {
        return $this->hash.">>".$this->url.">>".$this->err_msg."\n\n";
    }

    public function offsetExists($offset)
    {
        // TODO: Implement offsetExists() method.
    }
    public function offsetGet($offset)
    {
        // TODO: Implement offsetExists() method.
    }
    public function offsetSet($offset, $value)
    {
        // TODO: Implement offsetSet() method.
    }

    public function offsetUnset($offset)
    {
        // TODO: Implement offsetExists() method.
    }
}